import request from '@/utils/request'

// 查询课程标签列表
export function listTag(query) {
  return request({
    url: '/curriculum/tag/list',
    method: 'get',
    params: query
  })
}

// 查询课程标签详细
export function getTag(id) {
  return request({
    url: '/curriculum/tag/' + id,
    method: 'get'
  })
}

// 新增课程标签
export function addTag(data) {
  return request({
    url: '/curriculum/tag',
    method: 'post',
    data: data
  })
}

// 修改课程标签
export function updateTag(data) {
  return request({
    url: '/curriculum/tag',
    method: 'put',
    data: data
  })
}

// 删除课程标签
export function delTag(id) {
  return request({
    url: '/curriculum/tag/' + id,
    method: 'delete'
  })
}

// 修改课程标签状态
export function changeTagStatus(id,status) {
    const data={
      id,
      status
    }
  return request({
    url: '/curriculum/tag/changeTagStatus',
    method: 'post',
    data:data
  })
}


